/*
 * log.h
 *
 *  Created on: 2011-8-4
 *      Author: apple
 */

#ifndef LOG_H_
#define LOG_H_
#ifdef __cplusplus
extern "C" {
#endif

/*
 * Event log entry types.  These must match up with the declarations in
 * java/android/android/util/EventLog.java.
 */
typedef enum {
	EVENT_TYPE_INT = 0,
	EVENT_TYPE_LONG = 1,
	EVENT_TYPE_STRING = 2,
	EVENT_TYPE_LIST = 3,
} AndroidEventLogType;

#define android_bWriteLog(tag, payload, len) \
    __android_log_bwrite(tag, payload, len)
#define android_btWriteLog(tag, type, payload, len) \
    __android_log_btwrite(tag, type, payload, len)
#ifdef __cplusplus
}
#endif
#endif /* LOG_H_ */
